$(document).ready(function(){					
	var canvas = document.getElementById('canvas');
    var stage = new JTopo.Stage(canvas);
    //显示工具栏  showJTopoToobar(stage);
    var scene = new JTopo.Scene(stage);    
    scene.background = './img/bg.jpg';    
    stage.frames = 24;
    
    // 1行4列，1000毫秒播放一轮，行偏移量
    var sprite = new JTopo.AnimateNode('./img/effect/caizhu.png', 1, 4, 1000, 1);                    
    sprite.setSize(90, 88);
    sprite.setLocation(400, 250);                                
    sprite.repeatPlay = true;            
    sprite.play();
    scene.add(sprite);
    
});
	